var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(e, t) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(e, t) {
        e.__proto__ = t;
    } || function(e, t) {
        for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
    })(e, t);
}, function(e, t) {
    function n() {
        this.constructor = e;
    }
    o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 
    new n());
}), a = this && this.__decorate || function(e, t, n, o) {
    var r, c = arguments.length, a = c < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o); else for (var i = e.length - 1; 0 <= i; i--) (r = e[i]) && (a = (c < 3 ? r(a) : 3 < c ? r(t, n, a) : r(t, n)) || a);
    return 3 < c && a && Object.defineProperty(t, n, a), a;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("GameConfig"), s = e("GameData"), c = e("DataManager"), l = e("UIManager"), d = cc._decorator, u = d.ccclass, p = (d.property, 
function(e) {
    function t() {
        return null !== e && e.apply(this, arguments) || this;
    }
    return i(t, e), t.prototype.onEnable = function() {
        s.GD.eggsHintNum < r.GC.eggHintConfig.length + r.GC.eggGunConfig.length || s.GD.eggsHintState ? cc.systemEvent.emit("eggs_warn", !0) : cc.systemEvent.emit("eggs_warn", !1);
    }, t.prototype.onClick = function() {
        s.GD.eggsHintNum = r.GC.eggHintConfig.length + r.GC.eggGunConfig.length, c.default.getInstance().save(), 
        l.default.getInstance().hidePnl("start"), l.default.getInstance().loadPopPnl("eggsWall");
    }, t.prototype.start = function() {
        GA.Info.underCheck && this.node.destroy();
    }, a([ u ], t);
}(cc.Component));

n.default = p;